package com.rop.znyx.acl.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.rop.znyx.model.acl.RolePermission;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

/**
 * @Title: RolePermissionMapper
 * @Author Rop
 * @Date 2023/6/18 14:45
 * @description: 角色权限管理
 */

@Repository
public interface RolePermissionMapper extends BaseMapper<RolePermission> {

    /**
     * 批量新增角色的菜单
     */
    Integer batchInsert(@Param("roleId") Long roleId, @Param("permissionId") Long[] permissionId);
}
